

function $class(d, b, p){
	
	if (b)
	{
		if (b instanceof Array)
		{
			$.each(b, function(_b){
				$.each(_b.prototype, function(i, v){
					d.prototype[i] = v;
				});
			});
		}
		else
		{
			$.each(b.prototype, function(i, v){
				d.prototype[i] = v;
			});
		}
	}

	$.each(p, function(i, v){
		d.prototype[i] = v;
	});

}